<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "me_user_account".
 *
 * @property integer $id
 * @property integer $userid
 * @property double $amount
 * @property double $rebate_amount
 */
class UserAccount extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'me_user_account';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid', 'amount'], 'required'],
            [['userid'], 'integer'],
            [['amount', 'rebate_amount'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增ID',
            'userid' => '用户编号',
            'amount' => '账户金额',
            'rebate_amount' => '返利金额',
        ];
    }
}
